package com.company.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.company.dao.Company;
import com.company.dao.CompanyDao;
import com.company.exception.DAOException;
import com.company.exception.ServiceException;

@Transactional
public class CompanyServiceImpl implements CompanyService {

	@Autowired
	private CompanyDao companyDAO;
	
	@Override
	public Company saveCompany(Company company) throws ServiceException,
			DAOException {				
		return companyDAO.save(company); 
	}

}
